<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
    <p id="p">hello world</p>
    <script>
       var url="https://www1.easy-mock.com/mock/5b3ae098d294426e05198b4e/getTest";
       $.get(url,function(data){
            console.log(data);
       }).fail(function(data){
            document.body.innerHTML=data.status;
       });
    </script>
</body>
</html>